package com.turtle3d.user.grammars;

import com.turtle3d.formallanguage.grammar.Grammar;
import com.turtle3d.formallanguage.grammar.parser.SimpleParser;
import com.turtle3d.formallanguage.symbol.Symbol;

public class Dragon extends Grammar
{

	@Override
	public void define()
	{
		
		setAxiom(new Symbol("X"));
		addProduction(SimpleParser.parseProduction("X->X+YF+"));
		addProduction(SimpleParser.parseProduction("Y->-FX-Y"));			
		
		setDefaultParameter("turnAngle", 90f);
		
	}

}
